import "reflect-metadata";
import Express from "express";
import MovieRouter from './routes/MovieRoutes'
import UploadRouter from './routes/uploadRoutes'

const app = Express()
app.use("/upload", Express.static("public/upload"))
app.use(Express.json()) // 配置中间件 用于解析请求消息体中的json格式数据
app.use("/api/movie", MovieRouter)
app.use("/api/upload", UploadRouter)

app.listen(3000)